<?php

function getHost()
{
    static $host = null;
    if (is_null($host)) {
        $host = \Yaf\Registry::get('config')->get('application.host');
    }
    return $host;
}

function getAdminStaticHost()
{
    static $host = null;
    if (is_null($host)) {
        $host = \Yaf\Registry::get('config')->get('application.admin.static.host');
    }
    return $host;
}